package org.bikelab.se3.rdf.writer;

import java.io.FileWriter;

import org.semanticweb.yars.nx.Node;

public class RdfWriterFactory {
	public static String writeQuadInString(Node[] nodes) {
		String nq = nodes[0].toN3();
		nq += "\t" + nodes[1].toN3();
		nq += "\t" + nodes[2].toN3();
		nq += "\t" + nodes[3].toN3();
		nq += " . ";
		return nq;
	}
	
	public static String writeQuadInStringWithSPOS(Node[] nodes) {
		String nq = nodes[0].toN3();
		nq += "\t" + nodes[1].toN3();
		nq += "\t" + nodes[2].toN3();
		nq += "\t" + nodes[0].toN3();
		nq += " . ";
		return nq;
	}
}
